#include "../../platform/win32/inc/stdafx.h"
#include "../common/inc/InternalCommon.h"
#include "../inc/ReadWriteLock.h"

namespace	Platform
{

	namespace System
	{

		CReadWriteLock::CReadWriteLock(){}

		CReadWriteLock::~CReadWriteLock(){}

		CReadWriteLock::CReadWriteLock(const CReadWriteLock &object)
		{
			(*this) = object;
		}

		CReadWriteLock& CReadWriteLock::operator=(const CReadWriteLock &object)
		{
			return (*this);
		}

		bool CReadWriteLock::operator==(const CReadWriteLock &object)
		{
			return (this == &object);
		}

		int CReadWriteLock::Create(void)
		{
			return m_System.Create();
		}

		int CReadWriteLock::Destroy(void)
		{
			return m_System.Destroy();
		}

		int CReadWriteLock::ReadLock(IN DWORD timeout)
		{
			return m_System.ReadLock(timeout);
		}

		int CReadWriteLock::WriteLock(IN DWORD timeout)
		{
			return m_System.WriteLock(timeout);
		}

		int CReadWriteLock::Unlock(void)
		{
			return m_System.Unlock();
		}

	}

}